package com.bysj.service;

import com.bysj.dao.CategoryDao;
import com.bysj.entity.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    CategoryDao categoryDao;
    //查询所有分类
    @Override
    public List<Category> getCategoryAllName(Map map) {
        return categoryDao.getCategoryAllName(map);
    }
    //查询分类名称
    @Override
    public List<Category> getTopicByCategoryName(String categoryname) {
        return categoryDao.getTopicByCategoryName(categoryname);
    }
}
